import { makeAutoObservable } from 'mobx'
import {IRightList} from '@/utils/myProject'
import {getRightList} from '@/services/index'

class myProject{
    constructor(){
        makeAutoObservable(this)
    }

    // 右边列表
    rightList:IRightList[]=[]

    // 获取右侧列表数据
    async getRightList(){
        let result=await getRightList()
        console.log(result);  
        if(result.code==200){
            this.rightList=result.rows 
            console.log(this.rightList);
        }
      
            
    }
}

export default new myProject